tokio-dns-unofficial 0.1.2

Unofficial extension to tokio-core to provide asynchronous DNS resolution
Documentation

tokio-dns

Asynchronous name resolution utilities for the futures and tokio-core crates. Look at the crate-level documentation for more details.

BuildStatus

Documentation

The package's name is tokio-dns-unofficial, but the crate's name is tokio-dns.

Demo

// Taken from examples/basic.rs

// connect using the built-in resolver.
let conn = tcp_connect("rust-lang.org:80", &lp.handle()).and_then(|sock| {
    println!("conncted to {}", sock.peer_addr().unwrap());
    Ok(())
});

License

MIT or Apache